﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using WpfMvvmDemo.Models;

namespace WpfMvvmDemo.ViewModels
{
    public class ImageViewModel : ObservableObject
    {
        /// <summary>
        /// 图片标题
        /// </summary>
        private string imageTitle = string.Empty;
        public string ImageTitle
        {
            get => imageTitle;
            set => SetProperty(ref imageTitle, value);
        }

        /// <summary>
        /// 图片内容
        /// </summary>
        private BitmapSource imageSource = null;
        public BitmapSource CurImageSource
        {
            get => imageSource;
            set => SetProperty(ref imageSource, value);
        }

        /// <summary>
        /// 边框颜色
        /// </summary>
        private Brush borderBrush = Brushes.White;
        public Brush BorderBrush
        {
            get { return borderBrush; }
            set { SetProperty(ref borderBrush, value); }
        }


        public ImageViewModel()
        {
            
        }
    }
}
